<?php

namespace lib\Server\Heartbeat;

use Swoole\Exception;

/**
 * 向服务中心注册主系统上线 并上报系统负载，连接数等信息
 */
class Manager extends Base
{
	function __construct($server, $config)
	{
		parent::__construct($server, $config);
	}

	public function sendData($server, $config)
	{
		return json_encode($server->stats(), 256);
	}

	public function getData($data)
	{
		//($data);
	}

	public function broadcastData(){

	}

}
